@extends('admin.layout.layout')
@section('title','用户管理')
@section('con')

<div class="row">
	<div class="col-lg-12">
        <center><h1 class="page-header">用户添加</h1></center>
    </div>
	<div style='height:10px' class="col-lg-4 col-lg-offset-8">
		@if (count($errors)>0)
			<div class="alert alert-danger">
				<ul>
					@foreach ($errors->all() as $error)
						<li>{{ $error }}</li>
					@endforeach
				</ul>
			</div>
		@endif
	</div>
	<div class="ibox-content col-lg-6 col-lg-offset-3">
	    <form class="form-horizontal" action="{{url('/admin/user/insert')}}" method='post' enctype="multipart/form-data">
	        <div class="form-group">
	            <label class="col-sm-3 control-label">用户名：</label>
	            <div class="col-sm-6">
	                <input type="text" class="form-control" name='username'> 
	            </div>
	        </div>
	        <div class="form-group">
	            <label class="col-sm-3 control-label">密码：</label>
	            <div class="col-sm-6">
	                <input type="password" class="form-control"  name='password'>
	            </div>
	        </div>
	        
	        <div class="form-group">
	            <label class="col-sm-3 control-label">邮箱：</label>
	            <div class="col-sm-6">
	                <input type="text" class="form-control"  name='email'>
	            </div>
	        </div>
	        <div class="form-group">
	            <label class="col-sm-3 control-label">手机：</label>
	            <div class="col-sm-6">
	                <input type="text" class="form-control"  name='phone'>
	            </div>
	        </div>
	        <div class="form-group">
	            <label class="col-sm-3 control-label">性别：</label>
	            <div class="col-sm-6">
	                <input type="radio" value='m' name='sex'>男&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
	                <input type="radio" value='f' name='sex'>女&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
	                <input type="radio" checked value='u' name='sex'>保密	                
	            </div>
	        </div>
	        <div class="form-group">
	            <label class="col-sm-3 control-label">头像：</label>
	            <div class="col-sm-2" style='position:relative'>
	                <input type="file" placeholder="密码" name='pic' style='position:absolute;left:16px;top:5px; '>
	            </div>
	        </div>
	        {{csrf_field()}}
	        <div class="form-group">
	            <div class="col-sm-offset-3 col-sm-8">
	                <button type="submit" class="btn btn-sm btn-info">提交</button>
	                <button type="reset" class="btn btn-sm btn-info">重置</button>
	            </div>          
	        </div>
	    </form>
	</div>
</div>
@endsection